﻿@model CampusSite.Models.RegisterModel
@using BotDetect.Web.Mvc;
@{
    ViewBag.Title = "Register";
    //Layout = "~/Views/Shared/_LoginLayout.cshtml";
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}

        



<h2>Crear una nueva cuenta</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    
        @Html.ValidationSummary(true , "No se pudo crear la cuenta. Por favor corrija los errores y vuelva a intertarlo.",  new {  @class = "alert alert-error" })
    
    <div class="hero-unit">
        <div class="alert alert-info">
 <i class = "icon-info-sign"></i>
 Recuerde:    
    <br />
    El nombre de usuario debe ser igual al mail    
    <br />
    La clave debe tener un m&iacute;nimo de 6 caracteres.    
</div>
        <fieldset>
            @*<legend>Información de Cuenta</legend>*@
            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)

                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                
                @Html.ValidationMessageFor(m => m.Email)
                
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <br />


            @{ MvcCaptcha exampleCaptcha = new MvcCaptcha("ExampleCaptcha"); }
            @Html.Captcha(exampleCaptcha)
            @Html.TextBox("CaptchaCode")
            @Html.ValidationMessage("CaptchaCode")

            <p>                
                <input type="button" id="btnSubmit" value="Crear cuenta" class="btn btn-primary"/>
            </p>                      
        </fieldset>        
    </div>
}
